<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Customer extends Authenticatable
{
	use Notifiable;
	
    protected $table = 'customers';

    protected $fillable = [
    	'phone',
    	'password'
    ];

    protected $hidden = [
    	'password'
    ];

    public function customerInfo(){
        return $this->hasOne('App\Models\CustomerInfo');
    }

    public function collection(){
        return $this->hasOne('App\Models\Collection');
    }
}
